<template>
  <div class=''>
      <!-- 鼠标跟随 -->
      {{x}}, {{y}}
      <img :style="{position:'absolute', top: y+'px', left: x+'px'}" src="../01.png"/>
  </div>
</template>

<script>
import useMouse from './useMouse'
export default {
    setup () {
        const {x,y} = useMouse()

        return {x, y}
    }
   
}
</script>
